import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import StudentTable from '@/components/StudentTable'
import UpdateStu from '@/components/UpdateStu'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },{
      path: '/studentTable',
      name: 'StudentTable',
      component: StudentTable
    },{
      path: '/updateStu',
      name: 'UpdateStu',
      component: UpdateStu
    }
  ]
})
